/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2022-2022. All rights reserved.
 */

package com.huawei.housekeeper.controller.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import org.hibernate.validator.constraints.Length;

import java.math.BigDecimal;

import javax.validation.constraints.NotBlank;

/**
 * @author jWX1116205
 * @since 2022-02-10
 */
@Getter
@Setter
@ApiModel("创建服务对象")
public class CreateServiceDto {

    @NotBlank(message = "服务名称必填")
    @Length(max = 255, message = "最大长度:255")
    @ApiModelProperty(value = "服务名称", required = true)
    private String serviceName;

    @Length(max = 500, message = "最大长度:500")
    @ApiModelProperty(value = "服务描述", required = true)
    private String serviceDesc;

    @ApiModelProperty(value = "服务展示价格", required = true)
    private BigDecimal displayPrice;

    @Length(max = 500, message = "最大长度:500")
    @ApiModelProperty("图片地址")
    private String imgSrc;
}